package designpattern.factory.abstractfactory;

/**
 * @author cyt
 * @create 2020-04-24 13:58
 */
public class Test {
    /**
     * 需要产品族
     *
     * @param args
     */
    public static void main(String[] args) {
        System.out.println("=============小米产品");
        Xiaomifactory xiaomifactory = new Xiaomifactory();
        phone phone = xiaomifactory.iphoneproduct();
        phone.start();
        Router irouterproduct = xiaomifactory.irouterproduct();
        irouterproduct.set();
        System.out.println("=============华为产品");
        HuaWeifactory huaWeifactory = new HuaWeifactory();
        Router router = huaWeifactory.irouterproduct();
        router.start();
        huaWeifactory.iphoneproduct().sendMsg();
    }
}
